﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MapEditor
{
    public static class MapUtility
    {

        /// <summary>
        /// Clears the specified map.
        /// </summary>
        /// <param name="tab">The map to clear.</param>
        /// <param name="width">The width of the tab.</param>
        /// <param name="height">The height of the tab.</param>
        public static void ClearMap(short[,] tab, int width, int height)
        {
            for (int i = 0; i < width; i++)
            {
                for (int y = 0; y < height; y++)
                {
                    tab[i, y] = 0;
                }
            }
        }
    }
}
